home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
26
/
3
/
DISK2631.ZIP
/
EXAMP1.ZIP
/
RMEX230.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-04-13
|
395b
|
15 lines
OPEN "RANDOM.DTA" FOR RANDOM AS #1 LEN = 12
MAP #1, 10 AS FInputName$$, 2 AS FLuckyNumber$$
FOR Record% = 1 TO 3
INPUT "Name"; FInputName$$
INPUT "Lucky Number"; Number%
FLuckyNumber$$ = MKI$(Number%)
PUT #1, Record%
NEXT Record%
PRINT:PRINT "THE DATA STORED WAS: "
FOR Record% = 1 TO 3
GET #1, Record%
PRINT FInputName$$; CVI(FLuckyNumber$$)
NEXT Record%
CLOSE #1
END